<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cryptic Cabinet: CrypticCabinet.UI.Modal.MultiplayerMenu Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="Logo 100x100px.png"/></td>
  <td id="projectalign">
   <div id="projectname">Cryptic Cabinet
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_multiplayer_menu.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_multiplayer_menu-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">CrypticCabinet.UI.Modal.MultiplayerMenu Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Handles the logic for a generic Multiplayer Menu UI.  
 <a href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_multiplayer_menu.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for CrypticCabinet.UI.Modal.MultiplayerMenu:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_multiplayer_menu.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8eedc8ff42c15a8e1a4d9291ed46e275" id="r_a8eedc8ff42c15a8e1a4d9291ed46e275"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_multiplayer_menu.html#a8eedc8ff42c15a8e1a4d9291ed46e275">Initialize</a> (Action&lt; string &gt; hostAction, Action&lt; string &gt; joinAction, string defaultRoomName=null)</td></tr>
<tr class="memdesc:a8eedc8ff42c15a8e1a4d9291ed46e275"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the callbacks for the click of the buttons, and optionally set the default room name.  <br /></td></tr>
<tr class="separator:a8eedc8ff42c15a8e1a4d9291ed46e275"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dab3f4902ba3785ceaeece60100e8c1" id="r_a2dab3f4902ba3785ceaeece60100e8c1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_multiplayer_menu.html#a2dab3f4902ba3785ceaeece60100e8c1">OnHostClicked</a> ()</td></tr>
<tr class="memdesc:a2dab3f4902ba3785ceaeece60100e8c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Execute the callback associated to the Host button click.  <br /></td></tr>
<tr class="separator:a2dab3f4902ba3785ceaeece60100e8c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7adf06c8c5f0549ca307c8aaf7ee7c7" id="r_ad7adf06c8c5f0549ca307c8aaf7ee7c7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_multiplayer_menu.html#ad7adf06c8c5f0549ca307c8aaf7ee7c7">OnJoinClicked</a> ()</td></tr>
<tr class="memdesc:ad7adf06c8c5f0549ca307c8aaf7ee7c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Execute the callback associated to the Join button click.  <br /></td></tr>
<tr class="separator:ad7adf06c8c5f0549ca307c8aaf7ee7c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4ec02c808739d1c26b91937bb8e30f6" id="r_ad4ec02c808739d1c26b91937bb8e30f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_multiplayer_menu.html#ad4ec02c808739d1c26b91937bb8e30f6">OnBackClicked</a> ()</td></tr>
<tr class="separator:ad4ec02c808739d1c26b91937bb8e30f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Handles the logic for a generic Multiplayer Menu UI. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a8eedc8ff42c15a8e1a4d9291ed46e275" name="a8eedc8ff42c15a8e1a4d9291ed46e275"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8eedc8ff42c15a8e1a4d9291ed46e275">&#9670;&#160;</a></span>Initialize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.UI.Modal.MultiplayerMenu.Initialize </td>
          <td>(</td>
          <td class="paramtype">Action&lt; string &gt;&#160;</td>
          <td class="paramname"><em>hostAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Action&lt; string &gt;&#160;</td>
          <td class="paramname"><em>joinAction</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>defaultRoomName</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize the callbacks for the click of the buttons, and optionally set the default room name. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hostAction</td><td>The callback to run when the Host button is clicked.</td></tr>
    <tr><td class="paramname">joinAction</td><td>The callback to run when the Join button is clicked.</td></tr>
    <tr><td class="paramname">defaultRoomName</td><td>[Optional] the default room name to join.</td></tr>
  </table>
  </dd>
</dl>

<p class="reference">Referenced by <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_u_i_system.html#a011a8784cc3b17d7b6cdefc3885e47e8">CrypticCabinet.UI.UISystem.ShowNetworkSelectionMenu()</a>.</p>

</div>
</div>
<a id="ad4ec02c808739d1c26b91937bb8e30f6" name="ad4ec02c808739d1c26b91937bb8e30f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4ec02c808739d1c26b91937bb8e30f6">&#9670;&#160;</a></span>OnBackClicked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.UI.Modal.MultiplayerMenu.OnBackClicked </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_u_i_system.html#a36c70b6923ab6357f7e951a5aeba01f8">CrypticCabinet.UI.UISystem.HideNetworkSelectionMenu()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_u_i_system.html#a5cda9d816e9c56b92e7397a6d8f05149">CrypticCabinet.UI.UISystem.ShowMainMenu()</a>.</p>

</div>
</div>
<a id="a2dab3f4902ba3785ceaeece60100e8c1" name="a2dab3f4902ba3785ceaeece60100e8c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2dab3f4902ba3785ceaeece60100e8c1">&#9670;&#160;</a></span>OnHostClicked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.UI.Modal.MultiplayerMenu.OnHostClicked </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Execute the callback associated to the Host button click. </p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_utils_1_1_room_name_generator.html#a19299929f787a3f0b14ee403a647ded2">CrypticCabinet.Photon.Utils.RoomNameGenerator.GenerateRoom()</a>.</p>

</div>
</div>
<a id="ad7adf06c8c5f0549ca307c8aaf7ee7c7" name="ad7adf06c8c5f0549ca307c8aaf7ee7c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7adf06c8c5f0549ca307c8aaf7ee7c7">&#9670;&#160;</a></span>OnJoinClicked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CrypticCabinet.UI.Modal.MultiplayerMenu.OnJoinClicked </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Execute the callback associated to the Join button click. </p>

<p class="reference">References <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_u_i_system.html#a36c70b6923ab6357f7e951a5aeba01f8">CrypticCabinet.UI.UISystem.HideNetworkSelectionMenu()</a>, <a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_u_i_system.html#ade367d4dfdaf1261f21fd556d6f7820a">CrypticCabinet.UI.UISystem.ShowMessage()</a>, and <a class="el" href="class_cryptic_cabinet_1_1_photon_1_1_photon_connector.html#ad464f5ee82848d8b05a36f9a717a9a8a">CrypticCabinet.Photon.PhotonConnector.ShowNetworkSelectionMenu()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_multiplayer_menu_8cs.html">MultiplayerMenu.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_cryptic_cabinet.html">CrypticCabinet</a></li><li class="navelem"><a class="el" href="namespace_cryptic_cabinet_1_1_u_i.html">UI</a></li><li class="navelem"><a class="el" href="namespace_cryptic_cabinet_1_1_u_i_1_1_modal.html">Modal</a></li><li class="navelem"><a class="el" href="class_cryptic_cabinet_1_1_u_i_1_1_modal_1_1_multiplayer_menu.html">MultiplayerMenu</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
  </ul>
</div>
</body>
</html>
